interface Girl {
    name: string;
    age: number;
    bust: number;
    waistline?: number // 这个是可选属性
}

const girl: Girl = {
    name: '大脚',
    age: 18,
    bust: 94,
    // waistline: 21
}

const testResume = (girl: Girl) => {
    if (girl.age <= 24 && girl.bust >= 90) {
        console.log(girl.name + '通过面试')
    } else {
        console.log(girl.name + '你被淘汰')
    }
    showResume(girl)
}
const showResume = (girl: Girl) => {
    console.log('===================')
    console.log('name', girl.name)
    console.log('age', girl.age)
    console.log('bust', girl.bust)
    girl.waistline && console.log('waistline', girl.waistline)
    console.log('===================')
}

testResume(girl)
